package org.ectar.papi.data
{
	/**
	 * Represent <gphoto:> namespace in the photo feed
	 * @author Mykhaylo Lytvynyuk
	 */
	public class GPhoto
	{	
		/** Puvlic access means all photos will be visible to public */
		public static const GPHOTO_ACCESS_PUBLIC:String = "public";
		/** "unlisted" access means will visible only to yourself */
		public static const GPHOTO_ACCESS_ULISTED:String = "unlisted";
		/** "signin" required user to be signed in to view this resource */
		public static const GPHOTO_ACCESS_SIGN_IN:String = "signin";		
		/** photo ID */
		[Bindable] public var id:String;
		
		/** ID of parent album */
		[Bindable] public var albumid:String;
		
		/** Photo full width */
		[Bindable] public var width:int
		
		/** photo full height */
		[Bindable] public var height:int

		/** The size of the photo in bytes. */
		[Bindable] public var size:int;
		
		/** The ordinal position of the photo within the parent album.  Only for Photo */
		[Bindable] public var position:String;
		
		/** The rotation of the photo in degrees, used to change the rotation of the photo. 
		 *    Will only be shown if the rotation has not already been applied to the requested images. 
		[Bindable] public var  * */
		[Bindable] public var rotation:String;
		
		/**The client application that created the photo. (Optional element.) Only for Photo */
		[Bindable] public var client:String
		
		/** Checksum */
		[Bindable] public var checksum:String;
		
		/**
		 * The photo's timestamp, represented as the number of milliseconds since January 1st, 1970.
		 *  Contains the date of the photo either set externally or retrieved from the Exif data.
		 *  */
		[Bindable] public var timestamp:Number;
		
		/**
		 * The version number of the photo. 
		 * Version numbers are based on modification time, so they don't increment linearly.
		 *  Note that if you try to update a photo using a version number other than the latest one, 
		 * you may receive an error; for more information, see Optimistic concurrency (versioning) in the Google Data reference document.
		 * */
		[Bindable] public var version:String;
		
		/** number of comments */
		[Bindable] public var commentCount:String;
		
		/** Indicatas If commenting enabled */
		[Bindable] public var commentingEnabled:Boolean;		
		
		/** The user-specified location associated with the album in textual format, for example "Ottawa, On" . Applicable only for  Album */
		[Bindable] public var location:String;
		
		/** Indicated type of access Public or Private.  Applicable only for  Album*/
		[Bindable] public var access:String;
		
		/** The number of photos in the album..   Applicable only for  Album*/
		[Bindable] public var numphotos:String;		
		
		/** Contains user or actual owner of the album.   Applicable only for  Album*/
		[Bindable] public var user:String;	
		
		/** The name of the album, which is the URL-usable name derived from the title. This is the name that should be used in all URLs involving the album.   Applicable only for  Album*/
		[Bindable] public var name:String;			
		
		/** Contains nickname of the user.   Applicable only for  Album and User*/
		[Bindable] public var nickname:String;	
		
		/**The number of bytes of storage that this album uses.   Applicable only for  Album*/
		[Bindable] public var bytesUsed:String;
		
		/** The number of remaining photo uploads allowed in this album..   Applicable only for  Album*/
		[Bindable] public var numphotosremaining:String;
		
		/** The ID of the photo associated with the current comment. Only with comment kind */
		[Bindable] public var photoid:String;
		
		/** The following element appears only in feeds of the tag kind. Only with comment kind */
		[Bindable] public var weight:String;
		
		/** The following element will be populated only if we do keyword or GEO search. Contains
		 * a total number of items as a result a the request */
		[Bindable] public var crowded_length:String;
	}
}